<%@ include file="/includes/includes.jsp" %>
<c:if test="${roleBean.id != null}">
    <div class="editNote bold">
        <spring:message code="block.edit.role.name" arguments="${roleBean.name}"/>&nbsp;&nbsp;
    </div>
</c:if>
<form:form commandName="roleBean">
    <form:hidden path="id"/>
    <form:errors path="*" cssClass="error_block" element="div"/>
    <table width="100%" border="0">
        <tr>
            <td colspan="3" class="bottom_dotted"></td>
        </tr>
        <tr>
            <td>
                <label for="code" class="margin1"><spring:message code="code"/>*</label>
            </td>
            <td>
                <form:input id="code" path="code"/>
            </td>
            <td class="description">
                <spring:message code="rules.role.code"/>
            </td>
        </tr>
        <tr>
            <td colspan="3" class="bottom_dotted"></td>
        </tr>
        <tr>
            <td>
                <label for="name" class="margin1"><spring:message code="name"/></label>
            </td>
            <td>
                <form:input id="name" path="name"/>
            </td>
            <td class="description">
                <spring:message code="rules.role.name"/>
            </td>
        </tr>
        <tr>
            <td colspan="3" class="bottom_dotted"></td>
        </tr>
        <tr>
            <td>
                <label for="description" class="margin1"><spring:message code="description"/></label>
            </td>
            <td>
                <form:textarea id="description" path="description" rows="3"/>
            </td>
            <td class="description">
                <spring:message code="rules.role.description"/>
            </td>
        </tr>
        <tr>
            <td colspan="3" class="bottom_dotted"></td>
        </tr>
        <tr>
            <td colspan="3">
                <input type="submit" name="save" value="<spring:message code='save'/>" class="margin2p"/>
                <input type="submit" name="cancel" value="<spring:message code='cancel'/>" class="margin2p"/>
            </td>
        </tr>
    </table>
</form:form>